import request from '@/utils/request'

// 查询特种作业许可证清单列表
export function listPermit(query) {
  return request({
    url: '/ledger/permit/list',
    method: 'get',
    params: query
  })
}

// 查询特种作业许可证清单详细
export function getPermit(id) {
  return request({
    url: '/ledger/permit/' + id,
    method: 'get'
  })
}

// 新增特种作业许可证清单
export function addPermit(data) {
  return request({
    url: '/ledger/permit',
    method: 'post',
    data: data
  })
}

// 修改特种作业许可证清单
export function updatePermit(data) {
  return request({
    url: '/ledger/permit',
    method: 'put',
    data: data
  })
}

// 删除特种作业许可证清单
export function delPermit(id) {
  return request({
    url: '/ledger/permit/' + id,
    method: 'delete'
  })
}
export function exportPermit(query) {
  return request({
    url: '/ledger/permit/export',
    method: 'get',
    params: query
  })
}
